package com.leo.java.interpreter;

/**
 *
 * @author xuexiaolei
 * @version 2018年01月06日
 */
public class Client {
    public static void main(String[] args) {
//        String text = "LOOP 2 PRINT 杨过 SPACE SPACE PRINT 小龙女 BREAK END";
        String text = "LOOP 2 LOOP 2 PRINT杨过 SPACE SPACE PRINT 小龙女 BREAK END PRINT 郭靖 SPACE SPACE PRINT 黄蓉 BREAK END";
        Context context = new Context(text);

        Node node = new ExpressionNode();
        node.interpret(context);
        node.execute();
    }
}
